package KK.net.Event
{
	import KK.GameBase.MSGEvent;
	
	import flash.utils.ByteArray;
	
	public class SocketEvent extends MSGEvent
	{
		static public const SEND:String=AI;
		
		private var byte:ByteArray;
		private var id:int
		public function SocketEvent(type:String,CommandID:int,byte:ByteArray)
		{
			//TODO: implement function
			super(type);
			this.id=CommandID;
			this.byte=byte;
		}
		
		/**
		 * 获取命令id 
		 * @return 
		 * 
		 */
		public function get CommandID():int{
			return this.id;
		}
		
		/**
		 * 获取数据  
		 * @return 
		 * 
		 */
		public function get Data():ByteArray{
			return this.byte;
		}
	}
}